package nmrworkflow.framework.gui;
import java.awt.BorderLayout;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JTabbedPane;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class MainWindow extends javax.swing.JFrame {
	private JMenuBar menuBar;
	private JTabbedPane executionPane;
	private JTabbedPane dataPane;
	private JTabbedPane configurationPane;
	private JTabbedPane tabbedPane;
	private JMenuItem exitMenuItem;
	private JMenuItem preferencesMenuItem;
	private JMenu fileMenu;

	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				MainWindow inst = new MainWindow();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public MainWindow() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			{
				tabbedPane = new JTabbedPane();
				getContentPane().add(tabbedPane, BorderLayout.CENTER);
				{
					dataPane = new JTabbedPane();
					tabbedPane.addTab("Data", null, dataPane, null);
				}
				{
					configurationPane = new JTabbedPane();
					tabbedPane.addTab("Configuration", null, configurationPane, null);
				}
				{
					executionPane = new JTabbedPane();
					tabbedPane.addTab("Execution", null, executionPane, null);
				}
			}
			{
				menuBar = new JMenuBar();
				setJMenuBar(menuBar);
				{
					fileMenu = new JMenu();
					menuBar.add(fileMenu);
					fileMenu.setText("File");
					{
						preferencesMenuItem = new JMenuItem();
						fileMenu.add(preferencesMenuItem);
						preferencesMenuItem.setText("Preferences");
					}
					{
						exitMenuItem = new JMenuItem();
						fileMenu.add(exitMenuItem);
						exitMenuItem.setText("Exit");
					}
				}
			}
			pack();
			this.setSize(400, 324);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
